import { h } from 'vue'
import { ButtonProps } from './types'
import './indes.css'
const name = 'EButton'
const Button = (props: ButtonProps) => {
  return h('div', {
    class: ['loginBtnBody']
  }, [
    h('div', { class: ['loginBtn'], style: { backgroundImage: `url(${props.src})` } }, props.text),
    h('div', { class: ['loginBtnCover', props.type] }),
    h('div', { class: ['loginBtnCover2', props.type] })
  ])
}

export default {
  Button,
  name
}
